<?php
$oUsers = UserHandler::getUsers();
$sClientUsers = ClientHandler::getUsers($_REQUEST['iClientgroup']);
?>
<div id="layer_client_userchange" class="hidden" style="visibility: visible;">
<form action="index.php" method="post" name="form_client_userchange">
<input type="hidden" name="sAction" value="client-userchange">
<input type="hidden" name="iUser" value="<?php print $_REQUEST['iUser'] ?>">
<input type="hidden" name="iClientgroup" value="<?php print $_REQUEST['iClientgroup'] ?>">
<input type="hidden" name="sView" value="client-list">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxhandle" colspan="2"><?php print msg('Change user') ?></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('User') ?>:</td>
		<td class="fieldvalue"><input type="text" name="sUser" value="<?php print $oUsers[$_REQUEST['iUser']]->sUser ?>" disabled></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Admin') ?>:</td>
		<td class="fieldvalue"><input type="checkbox" name="bAdmin" <?php print ($sClientUsers[$_REQUEST['iUser']] == 'admin' ? 'checked' : '') ?> id="focus_client_userchange"></td>
	</tr>
	<tr>
		<td class="boxbody center" colspan="2">
			<input type="submit" value="<?php print msg('OK') ?>">
			<input type="button" value="<?php print msg('Cancel') ?>" onClick="layerHide('layer_client_userchange');">
		</td>
	</tr>
</table>
</form>
</div>
